<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>

<html:form action="/Gallery/CreateOrUpdate" enctype="multipart/form-data" styleId="upfile">
    <html:hidden property="id"/>
    <table>
        
        <tr>
            <td>
                Title:<br>
                <div class="errorMessage"><html:errors property="title"/></div>
                <html:text property="title" size="60"/>
            </td>
        </tr>
        
        <tr>
            <td>
                Description:<br>
                <div class="errorMessage"><html:errors property="description"/></div>
                <html:textarea property="description" cols="60" rows="10"/>
            </td>
        </tr>
        
        <tr>
            <td>
                File:<br>
                <div class="errorMessage"><html:errors property="file"/></div>
                <html:file property="file" accept="image/jpeg"/>
            </td>
        </tr>
        <tr>
            <td>
                <a class="button" href="javascript: document.getElementById('upfile').reset()">Reset</a>
                <a class="button" href="javascript: document.getElementById('upfile').submit()">Submit</a>
            </td>
        </tr>
    </table>
    
</html:form>